<template>
  <div>
    <ul>
      <navItem v-for="i in links" :link="i.path" :key="i.path">{{i.text}}</navItem>
    </ul>
  </div>
</template>

<script>
import navItem from "./nav_item.vue";
export default {
  data() {
    return {
      links: [
        {
          path: "/order",
          text: "订单",
        },
        {
          path: "/store",
          text: "库存",
        },
        {
          path: "/addOrder",
          text: "新增",
        },
        {
          path: "/buy",
          text: "进货",
        },
        {
          path: "/employee",
          text: "员工",
        },{
            path:'/customer',
            text:'客户'
        },{
            path:'/supplier',
            text:'供应商'
        },{
            path:'/product',
            text:'矿泉水'
        }
      ],
    };
  },

  components: {
    navItem,
  },
};
</script>

<style scoped>
ul {
  display: flex;
  flex-direction: column;
  width: 200px;
  background-color: #CCCCCC;
  height: 600px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  
}
</style>